# 国家对象
class Country:
    def __init__(self, englishname, chinesename, abbreviation, capitalenglish, capitalchinese):
        self.englishname = englishname
        self.chinesename = chinesename
        self.abbreviation = abbreviation
        self.capitalenglish = capitalenglish
        self.capitalchinese = capitalchinese

    def display_info(self):
        print(f"国家英文名: {self.englishname}")
        print(f"国家中文名: {self.chinesename}")
        print(f"英文缩写: {self.abbreviation}")
        print(f"首都英文名: {self.capitalenglish}")
        print(f"首都中文名: {self.capitalchinese}")

    # 用于支持print打印
    def __str__(self):
        return f"{self.englishname} ({self.chinesename}) 缩写: {self.abbreviation} 首都: {self.capitalchinese}"


# 测试对象
if __name__ == '__main__':
    pass
